package com.client.clovece;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.Graphics;
import java.awt.image.BufferedImage;


public class Painter {
	LocalGame lg;
	BufferedImage bi;
	Dimension di;
	Graphics gr;
	
	boolean gameOver;
	
	public Painter(LocalGame lg){
		this.lg = lg;
		di = lg.getSize();
	}
	
	private void Render(){
		if(bi == null){
			bi = new BufferedImage(di.width, di.height, 0);
			if(bi == null){
				System.err.println("Nepodarilo se vytvorit obrazek");
				return;
			}
		}else{
			gr = bi.getGraphics();
		}
		
		gr.setColor(Color.white);
	    gr.fillRect(0, 0, di.width, di.height);
	}
}
